answer "Start the game from the beginning?" with "Yes" or "No"
if it is "Yes" then
set cursor to 3
visual wipe right
go cd "the dock"
visual wipe right
go cd folded
visual wipe left
go cd over
visual scroll left fast
go cd title
openStack
about
end if
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=332 top=278 right=304 bottom=453
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 216
-- text size: 14
-- style flags: 1024
-- line height: 18
-- part name: Lock Scripts?
----- HyperTalk script -----
-- Fellow HyperCardists:
-- Stacks that are password-protected or have the userLevel set to
-- something other than 5 are irritating, but allowing the players,
-- while playing this game, to peek at the scripts that contain the
-- solutions to the puzzles would reduce the challenge of the game.
-- Therefore, this stack contains a "lock" that keeps the scripts
-- hidden. I felt there should be some way, though, to make the scripts
-- available to those who might want to use the basic structure of
-- the stack for a game of their own design or would just like to see
-- and chortle at my inelegant code. Thus, one of the payoffs for
-- completing the game is that the stack is automatically "unlocked"
-- when this last card is reached, and the user who struggled to solve
-- the puzzles can look at the scripts at any time, but can merely click
-- this button to render the scripts inaccessible to the next player.
-- The next dialog box you see will ask if you want to lock or unlock
-- "Meat & Conversation."
-- Click on "Lock It" if you want to prevent others' peeking. This will
-- return you to the beginning of the game.
-- Click "Later" if you want to leave the stack in its current unlocked
-- state.
-- A button has been added to the Home card that is being distributed
-- with the "If Monks Had Macs..." collection. Its purpose is to make
-- the scripts of this stack accessible to those who get frustrated
-- with the game "Meat & Conversation" and don't want to play it out
-- to the end.
-- (If the cantmodify of "Meat & Conversation" is, because it is on
-- a locked disk or a CD, set to true, the stack will still be locked
-- when you open it again, though.)
-- If you are going to give a copy of this game to someone else, please
-- make sure that it is locked before you pass it on.
-- Be sure to give them a copy of the button, too.
-- Thanks
-- Fillmore
on mouseUp
cleanScreen
edit script of target
answer "When you finished the game, you also gained access to its scripts. " &"Clicking “Lock It” will return this stack to the “No Peeking” mode." with "Lock It" or "Later"
if it is "Later" then exit mouseUp
set cantmodify of this stack to false
set cursor to 3
visual wipe right
go cd "the dock"
visual wipe right
go cd folded
visual wipe left
go cd over
visual scroll left fast
go cd title
put "Locked" into cd fld "Locked"
openStack
about
end mouseUp
on chooseDialog
answer "You can now look at the scripts. Please click on " &"“Lock Scripts?” to return this stack to the “No Peeking” mode " &"for the next player."